@echo off

REM To use this batch file, run this file elevated (runas administrator)

Set BaseDir=%~d0%~p0

SET BinDir=%BaseDir%..\bin\Debug
SET TargetDir=%BinDir%

SET AssemblyName=Baula.TextGen.ComAndVbeIntegration
SET BinPath=%BinDir%\%AssemblyName%.dll
SET TargetName=TextGen
SET TlbPath=%BinDir%\%TargetName%.tlb
ECHO INFO: Unregistering %TlbPath%
%windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe "%BinPath%" /codebase /tlb:"%TlbPath%" /nologo /silent /unregister

pause